package com.nbcio.modules.im.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nbcio.modules.im.domain.ImChatGroup;
import org.jeecg.common.constant.CacheConstant;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 群 服务类
 * </p>
 *
 * @author nbacheng
 * @since 2018-10-28
 */
public interface IImChatGroupService extends IService<ImChatGroup> {

    @Transactional(rollbackFor = Exception.class)
    void addGroupWithUsernames(ImChatGroup group, String usernames);

    @Transactional(rollbackFor = Exception.class)
    void editGroupWithUsernames(ImChatGroup group, String usernames);

    @Transactional(rollbackFor = Exception.class)
    void delGroupWithUsernames(ImChatGroup group, String usernames);

    @Transactional(rollbackFor = Exception.class)
    void batchDelGroup(String ids);
}
